<?php

// Initialize library directories.
$root = dirname(dirname(__FILE__));
define('BASE_DIR', $root);
		
set_include_path(implode(PATH_SEPARATOR, array(
	$root . '/library',
	$root . '/application/models',
	$root . '/classes',
	$root . '/library/Zendmore',
)));

require_once 'ZMBootstrap.php';
class Bootstrap extends ZMBootstrap 
{
	public function execute()
	{
		require_once 'Autoload.php';
		require_once 'Shortcuts.php';
		
		Config::getInstance();
		Debug::getInstance();
		Db::getInstance();
		
		$this->_initIni();
		$this->_initZFDebug();
		$this->_initPHPExceptionizer();
		$this->_initTimezone();
	}

	public function _initTimezone() {
		date_default_timezone_set( Config::getInstance()->default->timezone );
	}
}

$boostrap = new Bootstrap();
$boostrap->execute();

